clear 
clc

load('chrome_https_payload_by_os.mat');
% convert python time to matlab time
time = time/86400 + 719529;

fig1 = figure;
set(gcf, 'position', [0, 0, 600, 400]);

plot(time, payload(1,:), 'LineWidth',1.5); hold on
plot(time, payload(4,:), 'LineWidth',1.5); hold on
% plot(time, payload(3,:), 'LineWidth',1.5); hold on
plot(time, payload(5,:), 'LineWidth',1.5); hold on
plot(time, payload(2,:), 'LineWidth',1.5); 
dateaxis('x', 12);

ylabel('HTTPS Traffic Ratio');
xlabel('Date');
legend('Windows', 'Linux', 'Mac', 'Android');

set(gca, 'FontSize', 12);

grid on
